package com.qfedu.edu.exception.notify.observe.impl;

import com.qfedu.edu.constance.Constance;
import com.qfedu.edu.exception.notify.observe.base.Observer;
import com.qfedu.edu.manager.SmsManager;
import lombok.extern.slf4j.Slf4j;
import org.springframework.stereotype.Component;


import javax.annotation.Resource;
/**
 * 短信通知类
 */
@Slf4j
@Component
public class SmsObserve implements Observer {

    @Resource
    private SmsManager smsManager;

    @Override
    public void notifyMessage(String msg) {
        log.info("短信通知:{}", msg);
//        smsManager.sendSms(Constance.getOperatorTelPhone(),"");
    }

}
